package com.cf.user.permission.model;

import com.cf.crud.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * game-server-RoleWithPermission
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/5/29 下午 04:09
 */
@Entity
@Table(name = "roleWithPermission",
        uniqueConstraints = {
                @UniqueConstraint(columnNames = {"roleId", "permissionId"})
        }
)
public class RoleWithPermission extends BaseEntity {



    @Column(name = "roleId")
    private long roleId;

    @Column(name = "permissionId")
    private long permissionId;



    public long getRoleId() {
        return roleId;
    }

    public void setRoleId(long roleId) {
        this.roleId = roleId;
    }

    public long getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(long permissionId) {
        this.permissionId = permissionId;
    }
}
